package edu.gdkm.demo5;

public class Cat extends Animal{
    private int age;

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public Cat(String orgin, String kind, int age) {
        super(orgin, kind);
        this.age = age;
    }

    public Cat(int age) {
        this.age = age;
    }

    public Cat() {
    }

    @Override
    public String getContent() {
        return super.getContent()+",年龄:"+age;
    }
}
